package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 数据统计-义务段年度综合情况表
 *
 * @author zhiyuan
 * @since 2023-12-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_sjtj03")
@Schema(name = "EduSjtj03", title = "数据统计-义务段年度综合情况表", description = "数据统计-义务段年度综合情况表实体类")
public class EduSjtj03 extends Model<EduSjtj03> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "edusjtj03Id", description = "统计id")
    @TableId(value = "edusjtj03_id", type = IdType.INPUT)
    private Long edusjtj03Id;

    @Schema(name = "year", description = "年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "areaCode", description = "统筹区")
    @TableField(value = "area_code")
    private String areaCode;

    @Schema(name = "targetCode", description = "指标编码")
    @TableField(value = "target_code")
    private String targetCode;

    @Schema(name = "targetName", description = "指标名称")
    @TableField(value = "target_name")
    private String targetName;

    @Schema(name = "schoolCategory", description = "学段")
    @TableField(value = "school_category")
    private String schoolCategory;

    @Schema(name = "schoolNature", description = "学校性质0.公办 1.民办")
    @TableField(value = "school_nature")
    private String schoolNature;

    @Schema(name = "targetNum", description = "数量")
    @TableField(value = "target_num")
    private Double targetNum;

    @Schema(name = "targetUnit", description = "单位")
    @TableField(value = "target_unit")
    private String targetUnit;

    @Override
    public Serializable pkVal() {
        return this.edusjtj03Id;
    }
}
